{extend name='admin@main'}

{block name="button"}

{if auth("export")}
<a class="layui-btn layui-btn-sm" href="{:url('index')}?{$_SERVER['QUERY_STRING']}&export=1">导 出</a>
{/if}

{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='order_detail/index_search'}
    
    <table class="layui-table" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='text-left nowrap'>仓库</th>
            <th class='text-left nowrap'>运营计划</th>
            <th class='text-left nowrap'>姓名</th>
            <th class='text-left nowrap'>手机</th>
            <th class='text-center nowrap'>类型</th>
            <th class='text-center nowrap'>分类</th>
            <th class='text-center nowrap'>属性</th>
            <th class='text-center nowrap'>岗位</th>
            <th class='text-left nowrap'>完成件数</th>
            <th class='text-left nowrap'>单价金额</th>
            <th class='text-left nowrap'>总金额</th>
            <th class='text-left nowrap'>扣罚金额</th>
            <th class='text-left nowrap'>添加时间</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr data-dbclick>
            <td class='text-left nowrap'>{$vo.wh_name|default=''}</td>
            <td class='text-left nowrap'>{$vo.plan_date|default=''}</td>
            <td class='text-left nowrap'>{$vo.user_name|default=''}</td>
            <td class='text-left nowrap'>{$vo.phone|default=''}</td>
            <td class='text-center nowrap'>
                {eq name='vo.type' value='0'}<span class="layui-badge layui-bg-blue">运力</span>{/eq}
                {eq name='vo.type' value='1'}<span class="layui-badge layui-bg-green">分拣</span>{/eq}
            </td>
            <td class='text-center nowrap'>
                {eq name='vo.classify' value='0'}<span class="layui-badge layui-bg-blue">固定</span>{/eq}
                {eq name='vo.classify' value='1'}<span class="layui-badge layui-bg-orange">临时</span>{/eq}
            </td>
            <td class='text-center nowrap'>
                {eq name='vo.att' value='0'}<span class="layui-badge layui-bg-blue">车队</span>{/eq}
                {eq name='vo.att' value='1'}<span class="layui-badge layui-bg-orange">个人</span>{/eq}
                {eq name='vo.att' value='2'}<span class="layui-badge layui-bg-green">劳务</span>{/eq}
                {eq name='vo.att' value='3'}<span class="layui-badge layui-bg-gray">自招</span>{/eq}
            </td>
            <td class='text-center nowrap'>
                {eq name='vo.jobs' value='0'}<span class="layui-badge layui-bg-blue">有车</span>{/eq}
                {eq name='vo.jobs' value='1'}<span class="layui-badge layui-bg-orange">无车</span>{/eq}
                {eq name='vo.jobs' value='2'}<span class="layui-badge layui-bg-green">标品</span>{/eq}
                {eq name='vo.jobs' value='3'}<span class="layui-badge layui-bg-gray">冻品</span>{/eq}
                {eq name='vo.jobs' value='4'}<span class="layui-badge layui-bg-cyan">大件</span>{/eq}
                {eq name='vo.jobs' value='5'}<span class="layui-badge">杂工</span>{/eq}
            </td>
            <td class='text-left nowrap'>{$vo.complete_count|default=''}</td>
            <td class='text-left nowrap'>{$vo.price|default=''}</td>
            <td class='text-left nowrap'>{$vo.total_price|default=''}</td>
            <td class='text-left nowrap'>
                超时罚款总金额:{$vo.timeout_fine_price|default=''}<br>
                商品买赔总金额:{$vo.goods_fine_price|default=''}<br>
                其他罚款总金额:{$vo.other_fine_price|default=''}<br>
            </td>
            <td class='text-left nowrap'>
                {$vo.create_at|format_datetime}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>

    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

</div>

{/block}
